import { defHttp } from '@/utils/http/axios';
import { ErrorMessageMode } from '#/axios';
enum Api {
  //获取省、直辖市、自治区
  getProvince = '/region/getRegionFirstLevel',
  //获取市
  getCity = '/region/getRegionSecondLevel',
}
export const getProvince = () => {
  return defHttp.get<any>({url: Api.getProvince });
}
export const getCity = (params) => {
  return defHttp.get<any>({ params,url: Api.getCity });
}